<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>显示数据</title>
    <link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <div class = "col-sm-6 col-sm-offset-4">
<!--        <a href="/static/add.html">新增</a>-->
        <a href="/add">新增</a>
        <table border="1">
            <tr>
                {% for a in fields -%}
                <td>{{a}}</td>
                {%endfor -%}
                <td>删除</td>
                <td>修改</td>
            </tr>
            {%for item in datas-%}
            <tr>
                {%for a in item-%}
                <td>{{a}}</td>
                {%endfor -%}
                <td><a href = "/del/{{item[0]}}">删除</a></td>
                <td><a href = "/update?num={{item[0]}}">修改</a></td>
            </tr>
            {%endfor -%}
        </table>
    </div>
</div>
</body>
</html>